package com.by.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ServivE
 * @version 0.1
 * @className RabbitConfig
 * @description
 * @date 2024/10/23 15:37
 * @since jdk17
 */
@Configuration
public class RabbitConfig {
    /**
     * 发布确认队列
     *
     * @return
     */
    @Bean
    public Queue queue() {
        return new Queue("confirm-queue");
    }
}
